package com.healthcloud.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.healthcloud.utils.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;



/**
 * 检测结果
 * 
 * @author yucl
 * @email yucailong1111@126.com
 * @date 2018-05-31 16:20:16
 */
@Data
public class TestresultEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Long id;
	@ApiModelProperty(value = "身份证")
	private String idCard;
	@ApiModelProperty(value = "检测子项目编号")
	private String testItemCode;
	//检测子项目中文名
	private String testItemName;
	//英文名
	private String testItemNameen;
	//检测项目大类编号
	@ApiModelProperty(value = "检测项目大类编号 104:血压 105:血糖 502:血脂")
	private String testKindCode;
	//检测项目大类名称
	private String testKindName;
	//英文名
	private String testKindNameen;
	//检测时间
	@JSONField(format=DateUtils.DATE_TIME_PATTERN)
	@DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	@ApiModelProperty(value = "检测时间")
	private Date testTime;
	//检测结果值
	@ApiModelProperty(value = "检测结果")
	private String testValue;

	private String spare1;
	//
	private String testCh;
	//值的单位
	private String valueUnit;
	//检测结果医生建议
	private String testReport;
	//0=正常  1=偏高  -1=偏低   
	private String testResult;
	//1=具体数值 2=阴阳数值(阴=0 阳=1)  3=非数字
	private Integer resultKind;
	//美康仪器名称
	private String medicalinstrumentName;
	//美康仪器编号
	private String mKMedicalinstrumentId;
	//检测人员名称
	private String testPersonName;
	//1=医生 2=病人自己 
	private Integer testPersonKindId;
	//1=从体检  2=个人检测
	private Integer testFrom;
	//测试时温度
	private String temprature;
	//样本编号
	private String sampleNo;
	//参考值(高)
	private String consultHigh;
	//参考值(低)
	private String consultLow;
	//检测单ID
	private String testListId;
	//测试时间类型(1=餐前,2=餐后)
	private Integer mealType;
	//检测结果(0=偏低1=正常 9=偏高)
	private Integer consultResult;
	//
	private String resultLow;
	//
	private String resultHigh;
	//0:未发送  1：发送成功  2：发送失败  3：二次发送失败
	private Integer isPublish;
	//创建时间
	private Date createTime;

	//医院名
	private String hospName;

	private String opereation;

	private Integer dataType;

}
